package com.leiyuee.springbase.webSocket;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

//  https://www.easyswoole.com/wstool.html
// todo:  是扫描添加有 @ServerEndpoint 注解的 Bean 。
@Configurable
public class WebSocketConfig  {

    @Bean
    public ServerEndpointExporter serverEndpointExporter() {
        return new ServerEndpointExporter();
    }
}
